<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>商品列表页</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
	</head>
	<body>
		<!--网页头部、包含灰条、搜索区、导航栏-->
		{{include file="../Common/header"}}
		<!--网页头部、包含灰条、搜索区、导航栏-->
		<!--中部主要区域-->
		<div id="content_box">
			<div class="content">
				<div class="about_search">
					<span class="fl">相关搜索：</span>
					<div class="fl">
						{{foreach from="$xiangguanData" value="$u"}}
						<a href="c_{{$u['cid']}}.html" class="fl">{{$u['cname']}}</a>
						{{endforeach}}
					</div>
				</div>
				<div class="main">
					<div class="options">
						<div class="choice">
							<i class="fl">商品筛选（共</i>
							<span class="fl">{{if value="isset($countNUM)"}}{{$countNUM}}{{else if}}0{{endif}}</span>
							<i class="fl">个商品）</i>
							{{foreach from="$finalAttr" key="$k" value="$u"]}}
							<?php
							//用临时变量接一下，后面操作不会改变pararm
							$temp=$param;
							$temp[$k]=0;
							?>
								{{if value="$param[$k] != 0"}}
									<a href="l_{{$_GET['cid']}}_{{implode('_',$temp)}}.html" class="ss_item">
										<b style="font-weight: 400;">{{$u['name']}}：</b>
											{{foreach from="$u['value']"  value="$v"}}
											{{if value="$param[$k] == $v['coattid']"}}
												<em style="color: #e4393c;line-height: 22px;font-style: normal;">{{$v['coattvalue']}}</em>
											{{endif}}
											{{endforeach}}
										<i></i>
									</a>
								{{endif}}
							{{endforeach}}
						</div>
						{{foreach from="$finalAttr" key="$k" value="$u"]}}
						<?php
//							用临时变量接一下，后面操作不会改变pararm
							$temp=$param;
							$temp[$k]=0;
						?>
						<div class="brand_choice">
							<em class="fl">{{$u['name']}}：</em>
							<ul class="fl">
								<li class="fl">
									<a href="l_{{$_GET['cid']}}_{{implode('_',$temp)}}.html" class="fl" {{if value="$param[$k] eq 0"}}id="on"{{endif}}>不限</a>
								</li>
								<li class="fl">
									{{foreach from="$u['value']"  value="$v"}}
										<?php
											$temp[$k]=$v['coattid'];
										?>
									<a href="l_{{$_GET['cid']}}_{{implode('_',$temp)}}.html" class="fl" {{if value="$param[$k] == $v['coattid']"}}id="on"{{endif}}>{{$v['coattvalue']}}</a>
									{{endforeach}}
								</li>
							</ul>
						</div>
						{{endforeach}}
					</div>
					<div class="detail">
						<div class="detail_title">
							<div class="fl">
								<ul class="fl">
									<li class="fl">
										<span class="fl" style="margin: 10px;">排序：</span>
										<a href="javascript:;" class="fl" style="cursor: default;">默认</a>
<!--										<a href="" class="fl">上架时间</a>-->
<!--										<a href="" class="fl">价格↑</a>-->
<!--										<a href="" class="fl">评论数</a>-->
									</li>
								</ul>
							</div>
						</div>
						<ul class="detail_list">
							{{if value="isset($commolistData)"}}
							{{foreach from="$commolistData" value="$u"}}
							<li class="fl detail_count">
								<a href="d_{{$u['coid']}}_{{$_GET['cid']}}.html" class="fl p_img">
									<img src="{{$u['colistimg']}}"
										alt="" width="199" height="199" />
								</a>
								<p class="name"><a href="d_{{$u['coid']}}_{{$_GET['cid']}}.html">{{$u['coname']}}</a></p>
								<p class="des"><span class="fl">国行现货 包邮</span></p>
								<p class="price"><strong class="fl">{{$u['comallpr']}}</strong></p>
							</li>
							{{endforeach}}
							{{else if}}
								<h2 style="color: darkgrey;display: block;height: 200px;width: 400px;
								margin-top: 50px;margin-bottom: 50px;text-align: center;line-height: 200px">不好意思没有找到您想要的产品  ):</h2>
							{{endif}}
						</ul>
					</div>
					<div class="pages">
						<div class="pages_center">
							<span class="pages_btn">
								<a href="">首页</a>
								<a href="">上一页</a>
								<a href="">1</a>
								<a href="">2</a>
								<a href="">3</a>
								<span style="float: left; margin-right: 5px;">...</span>
								<a href="">下一页</a>
								<a href="">尾页</a>
							</span>
							<span class="pages_text"></span>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--中部主要区域-->
		<!--底部区域-->
		{{include file="../Common/footer"}}
		<!--底部区域-->
	</body>
</html>
